package com.crm.eg.dao;

import java.util.List;

import com.crm.eg.bean.UserAccount;
import com.crm.exception.DBException;

/**
 * 
 * Class Description:UserAccountDAO
 * 
 * <pre>
 * Filename			: UserAccountDAO.java 
 * Date				: 2008-10-27
 * Creator			: liuqing
 * Revised Description
 * ----------------------------------------------
 * ver	revised date	reviser	revised contents
 * ----------------------------------------------
 * 1.0  2008-10-27         liuqing  
 * </pre>
 */
public interface UserAccountDAO {

	public void save(UserAccount transientInstance) throws DBException;

	public void delete(UserAccount persistentInstance) throws DBException;

	public UserAccount findById(java.lang.Long id) throws DBException;

	public List<UserAccount> findByExample(UserAccount instance) throws DBException;

	public List<UserAccount> findByProperty(String propertyName, Object value) throws DBException;

	public List<UserAccount> findByUsername(Object username) throws DBException;

	public List<UserAccount> findByPassword(Object password) throws DBException;

	public List<UserAccount> findByGroupname(Object groupname) throws DBException;

	public List<UserAccount> findAll() throws DBException;

	public UserAccount merge(UserAccount detachedInstance) throws DBException;

	public void attachDirty(UserAccount instance) throws DBException;

	public void attachClean(UserAccount instance) throws DBException;
}